import { request, requestSync } from '@/utils/request'


  export const empAddUser = data => {
    return requestSync({
      url: '/system/emp/addUser',
      method: 'post',
      data
    })
  }

export const empInfo = userId => {
  return requestSync({
    url: '/system/emp/info',
    method: 'post',
    params:{
      userId:userId
    }
  })
}

export const empUpdate = data => {
  return requestSync({
    url: '/system/emp/update',
    method: 'post',
    data
  })
}

export const empListByRoleId = roleId => {
  return requestSync({
    url: '/system/emp/listByRoleId',
    method: 'post',
    params:{
      roleId: roleId
    }
  })
}

export const empUpdateState = data => {
  return requestSync({
    url: '/system/emp/updateState',
    method: 'post',
    data
  })
}

export const listAdvertising = () => {
  return requestSync({
    url: '/common/data/listAdvertising',
    method: 'post',
  })
}
